<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib prefix="his_fns" uri="/WEB-INF/tlds/his_fns.tld"%>
<script type="text/javascript">

</script>
<div class="content-wrap">
    <div class="wrapper" style="bottom: 50px;">
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="#">入库单详情</a>
            </li>
        </ul>
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="table-responsive no-border">
                    <a href="#" onclick="Print('${expImportDetail.masterId}')" class="btn btn-primary" style="margin-bottom: 10px">打印</a>
                    <table id="itemTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th>品名</th>
                            <th>型号</th>
                            <%--<th>规格</th>--%>
                            <%--<th>单位</th>--%>
                            <%--<th>包装数量</th>--%>
                            <th>规格</th>
                            <th>单位</th>
                            <th>生产厂家</th>
                            <th>批号</th>
                            <th>有效期</th>
                            <th>灭菌方式</th>
                            <th>灭菌批号</th>
                            <th>灭菌日期</th>
                            <th>入库单价</th>
                            <th>入库数量</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${expImportList}" var="expImportDetailList">
                        <tr>
                            <td> ${expImportDetailList.expDict.expName}</td>
                            <td> ${expImportDetailList.expDict.expModel}</td>
                            <%--<td> ${expImportDetailList.minSpec}</td>--%>
                            <%--<td> ${fns:getDictLabels(expImportDetailList.minUnits, 'SPEC_UNIT', '')}</td>--%>
                            <%--<td> ${expImportDetailList.packageNum}</td>--%>
                            <td> ${expImportDetailList.packageSpec}</td>
                            <td> ${fns:getDictLabels(expImportDetailList.packageUnits, 'SPEC_UNIT', '')}</td>
                            <td> ${his_fns:getExpSupplierById(expImportDetailList.expInfo.expSupplierCata.id)}</td>
                            <td> ${expImportDetailList.batchNo}</td>
                            <td><fmt:formatDate value="${expImportDetailList.expireDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                            <td> ${fns:getDictLabels(expImportDetailList.sterilizationMethod, "STERILIZATION_METHOD", "")}</td>
                            <td> ${expImportDetailList.sterilizationBatchNo}</td>
                            <td> <fmt:formatDate value="${expImportDetailList.sterilizationDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                            <td> ${expImportDetailList.purchasePrice}</td>
                            <td> ${expImportDetailList.quantity}</td>
                        </tr>
                        </c:forEach>
                    </table>
                </div>
            </div>
        </section>
    </div>
</div>
<script>
        function Print(masterId){
            printPdf('${ctx}/csm/expDetails/expImportDetailsPrint?masterId='+masterId);
    }
</script>